package com.liuanbang.saro.sarodemo.util;

/**
 * 随机数生成类
 */
public class RandomUtil {

    //按参数生成特定长度随机数
    public static long createRandomNumber(int length) {
        return (long) ((Math.random() * 9 + 1) * Math.pow(10, length - 1));
    }
}
